const { Op } = require("sequelize")
module.exports={
    async guanqAC(qid,uid){
        let where={ where: { [Op.or]: [{ fromid: uid }, { writerid: uid }] } }
        let data=await database.guanq.findOne({id:qid},{where})
        return data
    },
    async newsAC(qid,uid){
        let where={ where: { [Op.or]: [{ fromid: uid }, { writerid: uid }] } }
        let data=await database.news.findOne({id:qid},{where})
        return data
    }
}